-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Date Modified on Articles Manager (new feature) #15825
Conversation
Adding Date Modified sorting for Articles Manager
I have tested this item ✅ successfully on bb17ce3 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15825. |
@@ -110,6 +110,8 @@ | |||
<option value="language DESC">JGRID_HEADING_LANGUAGE_DESC</option> | |||
<option value="a.created ASC">JDATE_ASC</option> | |||
<option value="a.created DESC">JDATE_DESC</option> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix tab alignment.
@@ -161,6 +162,8 @@ COM_CONTENT_PAGEBREAK_DOC_TITLE="Page Break" | |||
COM_CONTENT_PAGEBREAK_INSERT_BUTTON="Insert Page Break" | |||
COM_CONTENT_PAGEBREAK_TITLE="Page Title:" | |||
COM_CONTENT_PAGEBREAK_TOC="Table of Contents Alias:" | |||
COM_CONTENT_MODIFIED_ASC="Date Modified ascending" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alphabetize/move strings.
I have tested this item ✅ successfully on bb17ce3 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15825. |
RTC after two successful tests. |
Adding Date Modified sorting for Articles Manager in backend
Pull Request for Issue #15610
Summary of Changes
4 files modified
Including Date Modified field in the model
administrator/components/com_content/models/articles.php
Adding the option in the ordering list form field with language constant.
administrator/components/com_content/models/forms/filter_articles.xml
Modifying the tmpl file, to consider the new date ordering label on the table's headings.
administrator/components/com_content/views/articles/tmpl/default.php
Adding en-GB translations for the new constants
administrator/language/en-GB/en-GB.com_content.ini
Totally 3 new constants:
COM_CONTENT_HEADING_DATE_MODIFIED="Date Modified"
COM_CONTENT_MODIFIED_ASC="Date Modified ascending"
COM_CONTENT_MODIFIED_DESC="Date Modified descending"
Testing Instructions
After applying the patch, go in articles manager in backend and through the Sorting List select the Date Modified ASC/DESC options to sort articles by date modified.
Expected result
The articles should be ordered by this date option.
Documentation Changes Required
Mention that articles manager now supports ordering the articles by Date Modified using the Sorting List field.